<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich" template="embed/template.xhtml">

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<ui:define name="topnav">
		<ui:include src="/embed/menu.xhtml">
			<ui:param name="page" value="home" />
		</ui:include>
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/login/login.xhtml" />
	</ui:define>

	<ui:define name="search">

		<ui:include src="/embed/search.xhtml" />

	</ui:define>

	<ui:define name="body">	
		<rich:panel>
			<f:facet name="header">修改帐户信息：</f:facet>
			<h:form styleClass="register">
				<s:validateAll>
					<div class="formRow"><h:outputLabel for="customername">用户名：
					</h:outputLabel> <h:inputText id="customername"
						value="#{currentCustomer.customerName}" required="true" /> <h:outputText>由字母，数字，下滑线组成，须以字母开头，6-10位</h:outputText>
					<div class="validationError"><h:message for="username" /></div>
					</div>
					<div class="formRow"><h:outputLabel for="customeremail">邮箱：
					</h:outputLabel> <h:inputText id="customeremail" value="#{currentCustomer.email}"
						required="true" /><h:outputText>须满足标准格式，如wangq649@163.com</h:outputText>
					<div class="validationError"><h:message for="email" /></div>
					</div>
				</s:validateAll>
				<h:commandButton action="#{register.updateCustomer}" value="保存帐户信息" />
			</h:form>
		</rich:panel>
		
	</ui:define>
</ui:composition>





